agents.anac.y2010.AgentSmith
Class SmithBidStrategy

java.lang.Object
  extended by agents.anac.y2010.AgentSmith.ABidStrategy
      extended by agents.anac.y2010.AgentSmith.SmithBidStrategy

public class SmithBidStrategy
extends ABidStrategy

The strategy that is used in our agent. It samples the bid space, takes the bids that are near Pareto and returns them as next actions. NOTE There are two bugs in this strategy: 1. The agent incorrectly assumes that there are only 2 minutes 2. The agent checks if it gave "enough" utility to the opponent instead of itself


Field Summary
 
Fields inherited from class agents.anac.y2010.AgentSmith.ABidStrategy
fAgentID, fBidHistory, fPreferenceProfile, fUtilitySpace
 
Constructor Summary
SmithBidStrategy(BidHistory pHist, UtilitySpace utilitySpace, PreferenceProfileManager pPreferenceProfile, AgentID pId)
          Constructor
 
Method Summary
 Bid getBestOpponentOffer()
          Return the best offer made by your opponent.
 Bid getMostOptimalBid()
          Calculate the most optimal bid
 Action getNextAction(double time)
          Generate in new action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmithBidStrategy

public SmithBidStrategy(BidHistory pHist,
                        UtilitySpace utilitySpace,
                        PreferenceProfileManager pPreferenceProfile,
                        AgentID pId)
Constructor

Parameters:
pHist - The bidhistory
utilitySpace - Utilityspace
pPreferenceProfile - Preference profile
pId - Our id
Method Detail

getNextAction

public Action getNextAction(double time)
Generate in new action

Overrides:
getNextAction in class ABidStrategy
Returns:
the next action based on the bidhistory and preference profile.

getMostOptimalBid

public Bid getMostOptimalBid()
Calculate the most optimal bid

Returns:
the most optimal bid
Throws:
java.lang.Exception

getBestOpponentOffer

public Bid getBestOpponentOffer()
Return the best offer made by your opponent. When time is running out this method is called to find the best bid available.

Returns:
Throws:
java.lang.Exception